<!-- App.vue -->
<template>
  <component :is="layout">
    <router-view></router-view>
  </component>
</template>

<script>
import MainLayout from "./layouts/MainLayout.vue";

export default {
  computed: {
    layout() {
      return this.$route.meta.layout ? "MainLayout" : "div";
    },
  },
  components: {
    MainLayout,
  },
};
</script>

<style>
/* 全局样式 */
</style>